import request from '@/router/axios'

export function fetchWxMessageTemplateList(query) {
  return request({
    url: '/mp/wxmessagetemplate/page',
    method: 'get',
    params: query
  })
}

export function addWxMessageTemplateObj(obj) {
  return request({
    url: '/mp/wxmessagetemplate',
    method: 'post',
    data: obj
  })
}

export function getWxMessageTemplateObj(id) {
  return request({
    url: '/mp/wxmessagetemplate/' + id,
    method: 'get'
  })
}

export function delWxMessageTemplateObj(id) {
  return request({
    url: '/mp/wxmessagetemplate/' + id,
    method: 'delete'
  })
}

export function putWxMessageTemplateObj(obj) {
  return request({
    url: '/mp/wxmessagetemplate',
    method: 'put',
    data: obj
  })
}
